import { type IThemeList } from '@/components/themeList.vue'
import { getRandomInt } from '@/utils/getRandomInt'

export function getThemeList() {
  return new Promise<IThemeList[]>(resolve => {
    setTimeout(
      () => {
        resolve([
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '11.7m',
          },
          {
            jianImg: true,
            jiangImg: true,
            title: '666这入是挂',
            hot: '384k',
          },
          {
            jianImg: false,
            jiangImg: true,
            title: '#666这入不是挂#',
            hot: '6.3m',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#778899庚庚',
            hot: '7.0m',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#CnFucker在T2当中单#',
            hot: '16k',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '26.8m',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '26.2m',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '19.1m',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '27k',
          },
          {
            jianImg: true,
            jiangImg: false,
            title: '#挑战每日一条沸点#',
            hot: '5.5m',
          },
        ])
      },
      getRandomInt(1, 2000),
    )
  })
}
